From 1557ebd8633e7be8ea3c1738a686463b6b1666ac Mon Sep 17 00:00:00 2001 From: Wei Liu Date: Thu, 11 Jan 2018 13:45:48 +0000 Subject: [PATCH] x86: don't swallow the first command line item in guest mode Signed-off-by: Wei Liu --- xen/arch/x86/setup.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xen/arch/x86/setup.c b/xen/arch/x86/setup.c index 027514f75a..a11eb5c302 100644 --- a/xen/arch/x86/setup.c +++ b/xen/arch/x86/setup.c @@ -633,8 +633,8 @@ static char * __init cmdline_cook(char *p, const char *loader_name) while ( *p == ' ' ) p++; - /* GRUB2 does not include image name as first item on command line. */ - if ( loader_is_grub2(loader_name) ) + /* GRUB2 and PVH don't not include image name as first item on command line. */ + if ( xen_guest || loader_is_grub2(loader_name) ) return p; /* Strip image name plus whitespace. */ -- 2.30.2